/**
 *  user
 */

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var  UserSchema = new Schema({
    uid:{
        type:ObjectId,
        require:true
    },
    user_name: {
        type:String
    },
    avatar:{
        type:String
    }
})

UserSchema.index({uid:1});

mongoose.model('User',UserSchema);